<ion-view>
    <ion-nav-title>{{prodInfo.prod_name | defString }}</ion-nav-title>
    <ion-nav-buttons side="left">
        <back-button></back-button>
    </ion-nav-buttons>
    <ion-content ng-class="{'has-loading': isOffline}">

        <ion-refresher pulling-text={{PULLING_TEXT}} pulling-icon="" refreshing-text={{REFRESHING_TEXT}}
                       on-refresh="doRefresh()"></ion-refresher>
        <div style="padding-bottom:15px"></div>
        <!-- panel -->
        <div class="panel income">
            <dl>
                <dt><i class="icon_profitLoss"></i>总资产：</dt>
                <dd>{{ holdFund.market_value | defNumber:2 }}<sub>元</sub></dd>
            </dl>
            <ul class="income-items clearfix">
                <li><em class="inc">{{ prodInfo.prod_profit_rate | defNumber:2 }}<sub>%</sub></em>预期收益率</li>
                <li><em class="inc">{{ prodInfo.reIncome | defNumber:2 }}<sub>元</sub></em>预期收益</li>
            </ul>
            <time class="item"><i class="icon_date"></i>到期时间{{prodInfo.prod_expire_date | defDateString : 1}}到期自动赎回</time>
        </div>
        <div class="little-tip" ng-if="prodInfo.prod_catalog_mark != 'otcfdsy'">显示收益未扣除手续费，实际收益以基金公司实际到账金额为准。</div>
        <div class="little-tip" ng-if="prodInfo.prod_catalog_mark == 'otcfdsy'">温馨提示：预期收益率为今日预估收益率，真实收益率以产品到期日为准。</div>
        <div class="panel basic-info">
            <ul>
                <li>起购金额：<em>{{prodInfo.prodMinSubscribe | prodMinSubscribe : 2 }}</em></li>
                <li>产品类型：<em>{{prodInfo.prod_catalog_name | defString }}</em></li>
                <li>风险：<em>{{prodInfo.prod_risk_level | dictionary : 'prodRisks'}}</em></li>
                <li>期限：<em>{{prodInfo.prod_duration | defNumber : null :'天'}}</em></li>
                <li>分红方式：<em>{{prodInfo.prod_share_type | dictionary : 'prodShareTypes'}}</em></li>
            </ul>
        </div>

        <!-- panel -->
        <div class="panel">
            <div class="item group">
                <a href="#/tab/account-productOrderHistory?prodCode={{prodInfo.prod_code}}&prodSource={{prodInfo.prod_source}}&trans_account={{holdFund.trans_account}}">历史交易记录</a>
            </div>
        </div>
        <div class="panel">
            <div class="item group">
                <a href="#/{{prodInfo.url}}/{{prodInfo.prod_code}}">产品主页</a>
            </div>
        </div>
    </ion-content>

    <ion-footer-bar class="footer">
        <dl>
            <dt></dt>
            <dd>
                <a ng-if="prodInfo.prod_status == 0 || prodInfo.prod_status == 3 || prodInfo.prod_status == 4" class="btn"
                   buy-button prod_code="{{param.prodCode}}" prod_source="{{param.prodSource}}" add="1">追加购买</a>
                <a ng-if="prodInfo.prod_status == 2" class="btn disable">暂停申购</a>
                <a ng-if="prodInfo.prod_status == 5" class="btn disable">封闭期</a>
                <a ng-if="prodInfo.prod_status== 1" class="btn disable">暂停交易</a>
            </dd>
        </dl>
    </ion-footer-bar>
</ion-view>